package com.tiantianfresh.admin.service;

import com.tiantianfresh.model.pojo.CommodityAllocation;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author FANGAO
 * @date 2021/12/23 - 下午 22:59
 */
@Service
public interface CommodityAllocationService {
    /**
     * 每个商品的订单配置
     * @param comid
     * @return
     */
    List<CommodityAllocation> queryCommodityAllocationAll(Integer comid);

    /**
     * 添加订单配置
     * @param commodityAllocation
     * @return
     */
    boolean insertCommodity(CommodityAllocation commodityAllocation);

    /**
     * 修改订单配置
     * @param commodityAllocation
     * @return
     */
    boolean updateCommodity(CommodityAllocation commodityAllocation);

    /**
     * 修改订单配置状态
     * @param commodityAllocation
     * @return
     */
    boolean updateState(CommodityAllocation commodityAllocation);
}
